package org.apache.tomcat.util.digester;

import java.util.List;

/**
 * Rules
 *
 * @author chentudong
 * @date 2024/2/19 17:01
 * @since 1.0
 */
public interface Rules {

  /**
   * rules
   *
   * @return List<Rule>
   */
  List<Rule> rules();

  /**
   * add
   *
   * @param pattern pattern
   * @param rule    rule
   */
  void add(String pattern, Rule rule);

  /**
   * @param digester digester
   */
  void setDigester(Digester digester);
}
